<% if flash[:warning] %> 
	<p style="color: red;"><%= flash[:warning] %></p>
<% end %>
<h3>Change password</h3>

<% form_for :user, :url=>{:action => 'change_password'} do |form| %>
	<%= error_messages_for 'user' %>
	
	<label for="user_oldpassword">Old Password:</label><br/>
	<%= form.password_field "oldpassword", :size => 20, :value=>"" %><br/>
	
	<label for="user_password">Choose New Password:</label><br/>
	<%= form.password_field "password", :size => 20, :value=>"" %><br/>

	<label for="user_password_confirmation">Verify Your Password:</label><br/>
	<%= form.password_field "password_confirmation", :size => 20, :value=>"" %><br/>

	<%= submit_tag "Submit" %>

<% end %>

<%= link_to 'Back', {:action => "show"} %>
